<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="style.css">
    <style>
        header{
            height:250px; 
            background: url(images/images/top-bg.png) no-repeat;
            background-size: cover;
        }
        nav{
            height:50px;
            width:100%;
            background: rgba(0,0,0,0.4);
            display: flex;
            justify-content: space-between;
            padding: 0 18px 0 56px;
            box-sizing: border-box;
            line-height: 50px;
        }
        nav ul{
            display: flex;
        }
        nav ul li{
            padding: 0 20px;
        }
        nav>a img{
            width:138px; height:50px;
        }
        nav a{
            color: #fff;
            font-size: 14px;
        }
        nav span{
            display: none;
        }
        section ul{
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;  
        }
        section ul li{
            border: solid 1px #ccc;
            box-shadow: 1px 0 3px #333;
            width:23%;
            box-sizing: border-box;
            margin-top: 15px;
            padding:5px;
        }
        section li img{
            width:100%;
        }
        section li p:nth-of-type(2){
            display: flex;
            justify-content: space-between;
        }
        /* 0-1600px */
        /*  */
        @media all and (max-width:700px){
            nav ul{
                display: none;
            }
           nav span{
                display: block;
                color:#fff;
                font-size: 14px;
                order: -1;
                /* 值越小越靠前，默认为0，支持负值 */
            }
            section ul li{
                width:48%;
            }
        
        }
    </style>
</head>
<body>
    <header>
       <nav>
            <a href="#"><img src="images/images/logo.png" alt=""></a>
            <ul>
                <li><a href="#">首页</a></li>
                <li><a href="#">首页</a></li>
                <li><a href="#">首页</a></li>
                <li><a href="#">首页</a></li>
                <li><a href="#">首页</a></li>
            </ul>
            <span>menu </span>
            <p>
                <a href="#">更多</a>
            </p>
       </nav>
    </header>

    <section>
        <ul>
            <li><img src="images/images/1.jpg" alt="">
                <p>迷你世纪</p>
                <p><i>2022-05-13</i> <span>作者：余美丽</span></p>
            </li>
            <li><img src="images/images/2.jpg" alt="">
                <p>迷你世纪</p>
                <p><i>2022-05-13</i> <span>作者：余美丽</span></p>
            </li>
            <li><img src="images/images/1.jpg" alt="">
                <p>迷你世纪</p>
                <p><i>2022-05-13</i> <span>作者：余美丽</span></p>
            </li>
            <li><img src="images/images/3.jpg" alt="">
                <p>迷你世纪</p>
                <p><i>2022-05-13</i> <span>作者：余美丽</span></p>
            </li>
            <li><img src="images/images/4.jpg" alt="">
                <p>迷你世纪</p>
                <p><i>2022-05-13</i> <span>作者：余美丽</span></p>
            </li>
            <li><img src="images/images/2.jpg" alt="">
                <p>迷你世纪</p>
                <p><i>2022-05-13</i> <span>作者：余美丽</span></p>
            </li>
            <li><img src="images/images/1.jpg" alt="">
                <p>迷你世纪</p>
                <p><i>2022-05-13</i> <span>作者：余美丽</span></p>
            </li>
            
        </ul>
    </section>
</body>
</html>